#pragma once

namespace gtl
{

namespace dui
{

static const char* lua_class =
"--------------------------------------------------------------------------"
"-- class pane \n"
"class 'pane' \n\
function pane:__init(id) \n\
	self.id = id \n\
end \n"

"function pane:show() \n\
	window:show(self.id) \n\
end \n"

"function pane:hide() \n\
	return window:hide(self.id) \n\
end \n"

"function pane:visible() \n\
	return window:visible(self.id) \n\
end \n"

"function pane:attrib(attrb) \n\
	return window:attrib(self.id, attrb) \n\
end \n"

"function pane:width() \n\
	return window:width(self.id) \n\
end \n"

"function pane:height() \n\
	return window:height(self.id) \n\
end \n"

"function pane:rect() \n\
	return window:rect(self.id) \n\
end \n"

"function pane:position() \n\
	return window:position(self.id) \n\
end \n"

"function pane:move(x, y, wdth, hght) \n\
	return window:move(self.id, x, y, wdth, hght) \n\
end \n"

"--------------------------------------------------------------------------"
"-- class button \n"
"class 'button' (pane) \n\
function button:__init(id) \n\
	 pane:__init(id) \n\
end \n"

"function button:state() \n\
	return self:attrib('state') \n\
end \n"

"--------------------------------------------------------------------------"
"-- class layer \n"
"class 'layer' (pane) \n\
function layer:__init(id) \n\
	pane:__init(id) \n\
end \n"

"--------------------------------------------------------------------------"
"-- class panel \n"
"class 'panel' (pane) \n\
function panel:__init(id) \n\
	pane:__init(id) \n\
end \n"

"--------------------------------------------------------------------------"
"-- class combin \n"
"class 'combin' (pane) \n\
function combin:__init(id) \n\
	 pane:__init(id) \n\
end \n"

"function combin:level() \n\
	return self:attrib('level') \n\
end \n"

"--------------------------------------------------------------------------"
"-- class custom \n"
"class 'custom' (pane) \n\
function custom:__init(id) \n\
	 pane:__init(id) \n\
end \n"

"function custom:children() \n\
	return self:attrib('children') \n\
end \n"

"--------------------------------------------------------------------------"
"-- class combox \n"
"class 'combox' (pane) \n\
function combox:__init(id) \n\
	 pane:__init(id) \n\
end \n"

"--------------------------------------------------------------------------"
"-- class listctrl \n"
"class 'listctrl' (pane) \n\
function listctrl:__init(id) \n\
	 pane:__init(id) \n\
end \n"
;

} // end of namespace dui

} // end of namespace gtl